resource "google_compute_instance" "<%= ctx[:primary_resource_id] %>" {
  name         = "<%= ctx[:vars]['instance_name'] %>"
  zone         = "<%= ctx[:vars]['zone_name'] %>"
  machine_type = "e2-medium"

  boot_disk {
    initialize_params {
      image = "debian-cloud/debian-9"
    }
  }

  network_interface {
    network = "default"
  }
}
